package util;

import com.alibaba.druid.filter.config.ConfigTools;


public class DruidTest {


    public static void main(String[] args) {
        try {
            String password = ConfigTools.encrypt("testdb");

            String password2 = ConfigTools.decrypt("jHnYGZenN8R+Cr0A5NuenZHLmUe7pwUsnHe3Vgpqc7vELVf/4EKXyEPvfwUEJQS3XyEVd8i+PiMRStbgaKWqMg==");

            System.out.println(password + "\n" + password2);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}